<?php

namespace App\Business\BLL\Wechat;

use EasyWeChat\Factory;

class WechatPayment
{
    public static function make()
    {
        $config = [
            'app_id' => config('wechat.payment.default.app_id'),
            'mch_id' => config('wechat.payment.default.mch_id'),
            'key' => config('wechat.payment.default.key'),
            'cert_path' => config('wechat.payment.default.cert_path'), // XXX: 绝对路径！！！！
            'key_path' => config('wechat.payment.default.key_path'),      // XXX: 绝对路径！！！！
        ];

        return Factory::payment($config);
    }
}
